package com.ymtms.arrivalofgoods.dao;

import com.ymtms.arrivalofgoods.pojo.GoodsbillMaster;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface GoodsbillMasterMapper {
    int deleteByPrimaryKey(Integer gmid);

    int insert(GoodsbillMaster record);

    int insertSelective(GoodsbillMaster record);

    GoodsbillMaster selectByPrimaryKey(Integer gmid);

    int updateByPrimaryKeySelective(GoodsbillMaster record);

    int updateByPrimaryKey(GoodsbillMaster record);

    @Select("select * from goodsbill_master where goods_bill_code=#{goodsbillCode}")
    GoodsbillMaster queryGoodsbillMasterByCode(String goodsbillCode);
@Select("select count(*) from goodsbill_master where goods_bill_code=#{goodsbillCode}")
    int selectCountFromGoodsbillMaster(String goodsbillCode);
@Update("update goodsbill_master set if_settle_accounts='已结算' where gmid=#{gmid}")
void  updateSettleByGmid(Integer gmid);

}